<template>
	<div>
		<jk-button
			type="warning"
			:loading="loading"
			icon="el-icon-upload2"
			:disabled="disabled"
			:has-permission="getPermission([`${permissionPrefix}:${permissionName}`])"
			size="small"
			@click="onClickEvent"
		>导出</jk-button>
	</div>
</template>
<script>
    import permissionMixin from '../../../mixins/permission-mixin';

    export default {
        name: 'JkExportButton',
        mixins: [permissionMixin],
        props: {
            permissionPrefix: {
                type: String,
                default: ''
            },
            permissionName: {
                type: String,
                default: 'export'
            },
            disabled: {
                type: Boolean,
                default: false
            },
            loading: {
                type: Boolean,
                default: false
            }
        },
        data() {
            return {
                name: ''
            };
        },
        methods: {
            onClickEvent() {
                this.$emit('click');
            }
        }

    };
</script>
